<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<!-- Redirect to the login page if there is no session created -->
<%
if (session.getAttribute("username") == null) {
	response.sendRedirect("/login.jsp");
}

if (session.getAttribute("account_type").equals("admin")) {
	response.sendRedirect("/adminInterface.jsp");
}
%>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		 <title>Home | Media Vault</title>
	
		<!--icon-->
		<link rel="icon" href="images/mv.ico" type="">
		<!--CSS-->
        <link rel="stylesheet" href="css/style.css" type="text/css" media="screen"/>
        <link rel="stylesheet" href="css/login.css" type="text/css" media="screen"/>
        <link href="css/TableStyleCat.css" rel="stylesheet" media="all" />
        <link rel="stylesheet" href="css/updateFile.css" type="text/css"/>
        

		<!--Ajax Scripts-->

		<!--Java Scripts-->
		<script type="text/javascript" src="js/validate.js"></script>
    </head>
    <body>
    	<div style="float:left;">
    		<!-- Login Status Bar -->
    		<jsp:include page="loginStatusBar.jsp" />
    	</div>
    	<div style="float:right;">
    		<!-- Search Bar -->
    		<jsp:include page="searchBar.jsp" />
    	</div></br></br>
    	
    	<!-- Quick Menue -->
    	<jsp:include page="quickMenue.jsp" />
    		
    		<div id="search_results">
	    	<div class="header" style="width:800px; margin-top:30px;">
				<h1>Media Vault</h1>
			</div>
			
			<!--Upload file function-->
			<div style="width: 1000px; height: 530px;">
	    		<jsp:include page="dndUpload.jsp" />
	    	</div>
	    	
	    	<!-- Media List -->
	    	<div id="wrapper" style="width:auto; margin:70px; margin-left:100px; padding:10px;">
			   	<div style="padding:10px;">
			   		<jsp:include page="mediaList.jsp" />
			   	</div>
			</div>
		</div>
    </body>
</html>